package eaxm;

/**
 * @Auther:小陈的Java
 * 编写单例设计模式(饿汉式)
 */
public class Number7 {
    private Number7(){}

    private static Number7 single;

    public static Number7 getInstance(){
        if(single == null){
            single = new Number7();
        }
        return single;
    }
}